using System;
using System.Windows.Forms;
using DevExpress.LookAndFeel;
using VASJ.Model;
using VASJ.Presentation;
using VASJ.VASJService;
using VASJ.Business;
using VASJ.Presentation.HeThong;

namespace VASJ
{
    internal static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DevExpress.Skins.SkinManager.EnableFormSkins();
            DevExpress.UserSkins.OfficeSkins.Register();
            DevExpress.UserSkins.BonusSkins.Register();
            UserLookAndFeel.Default.SetSkinStyle("DevExpress Style");

            InitXmlData();

            ////Change password
            //AcpInetResult rtValue = SercurityService.ChangePassword("manhnv83", "abc@123", "AbC@123");

            Application.Run(new FrmNguoiSuDung());

            ////Show Login Screen
            //using (FrmLogin loginForm = new FrmLogin())
            //{
            //    if (loginForm.ShowDialog() == DialogResult.OK)
            //    {
            //        Application.Run(new FrmMain());
            //    }
            //}
        }

        private static void InitXmlData()
        {
            ConfigManager.Run();
            LocalizationManager.Run();
            MenuManager.Run();
        }
    }
}